package cn.iocoder.yudao.module.pickbook.controller.admin.user.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 用户新增/修改 Request VO")
@Data
public class PickUserSaveReqVO {
    @Schema(description = "用户编号", example = "1")
    private Long id;

    @Schema(description = "微信OpenID", example = "29604")
    private String openid;

    @Schema(description = "微信UnionID", example = "19716")
    private String unionid;

    @Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "用户昵称不能为空")
    private String nickname;

    @Schema(description = "用户头像")
    private String avatar;

    @Schema(description = "用户角色", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "用户角色不能为空")
    private String role;

    @Schema(description = "用户状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "用户状态不能为空")
    private Integer status;

    @Schema(description = "会员状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "会员状态不能为空")
    private Boolean isMember;

    @Schema(description = "创建者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "创建者不能为空")
    private String creator;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新者", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "更新者不能为空")
    private String updater;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "是否删除")
    private Boolean deleted;

    @Schema(description = "通知开关（默认开启）")
    private Integer notification;

    @Schema(description = "播放设置")
    private Integer autoPlay;

}